﻿package com.xeem.henkel.common
{
	import flash.display.*;
	import flash.events.*;
	import flash.geom.*;
	import flash.text.*;
	
	public class LabelComponent extends UIBaseComponent
	{
		private var _title:TextField;
		private var _w:Number;
		private var _h:Number;
		
		public function LabelComponent(w:Number,h:Number)	{
			this._w=w;
			this._h=h;
			_title=new TextField();
		}
		
		public function draw():void{
			drawData();
			drawLanguage();
		}
		
		public override function drawLanguage():void
		{
			_title=language.getTextField();	
			_title.x=0;
			_title.y=0;
			_title.width=_w;
			_title.height=_h;
			addChild(_title);
		}
	}
}